package com.singfan.core.dao.database;

import com.singfan.core.dao.database.model.Shop;

import java.util.List;

/**
 *
 * Author: hansonghe
 * Date: 2015-08-19 12:12
 * Desc:
 */
public interface IShopDao {
    void create(Shop shop);

    Shop selectShop(long shopId);

    Shop selectShop(String phoneNumber);

    List<Shop> selectAll();

    void updatePwd(long shopId, String pwd, String pwdSalt);

    List<Shop> selectSlaveShopList(int masterShopId);

    boolean isExistShopByName(int masterShopId, String slaveShopName);

    boolean isExistShopByPhone(String phone);

    void update(Shop shop);

    void updateStatus(long shopId, int status);

    void resetPwd(long shopId, String pwd, String salt);
}